#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:homework3_3.py
# author:wmf
# datetime:2021/4/5 21:30
# software: PyCharm
'''
this is function description
'''
# import module your need

# 3 编写一个程序，读取文件中保存的10个学生成绩名单信息(学号,姓名, Python课程分数);
# 然后按照分数从高到低进行排序输出

list2 = []
with open('score.txt','r') as f:
    for x in range(10):
        str1 = f.readline()
        list1 = str1.split()
        list2.append(list1)

print(list2)
list2.sort(key = lambda x : x[2],reverse=-1)
print(list2)
